<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>JQueryDom操作</title>
		<link rel="stylesheet" type="text/css" href="css/txt.css" />
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<div id="net">www.baidu.com</div>
		<div><p id="a">aa.com</p></div>
	</body>

	<script type="text/javascript">
		$(function() {
			// 请把元素包裹起来
			$("#net").wrap("<h1>");
			// 解包裹
			$("#a").unwrap();
		});
	</script>

</html>